]> dgit.raspbian.org Git - gnome-shell.git/commitdiff
keyboard: Make a few functions private
authorJonas Dreßler <verdre@v0yd.nl>
Sat, 20 Feb 2021 11:51:32 +0000 (12:51 +0100)
committerMarge Bot <marge-bot@gnome.org>
Fri, 12 Mar 2021 15:56:12 +0000 (15:56 +0000)
Now that we got rid of the external calls to setCursorLocation(), we can
make that private. animateShow() and animateHide() weren't called from
outside anyway, so let's make those private, too.

Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/1728>

js/ui/keyboard.js

index 2d7e5066448756d6069bc6a6f4d6798266471c3f..ddec8b3aed6c15cfa062472f77ab8fa54259287c 100644 (file)
@@ -1765,7 +1765,7 @@ var Keyboard = GObject.registerClass({
             return;
 
         this._relayout();
-        this.animateShow();
+        this._animateShow();
 
         this._setEmojiActive(false);
     }
@@ -1792,11 +1792,11 @@ var Keyboard = GObject.registerClass({
         if (this._keyboardRequested)
             return;
 
-        this.animateHide();
+        this._animateHide();
         this.setCursorLocation(null);
     }
 
-    animateShow() {
+    _animateShow() {
         if (this._focusWindow)
             this._animateWindow(this._focusWindow, true);
 
@@ -1824,7 +1824,7 @@ var Keyboard = GObject.registerClass({
         keyboardBox.queue_relayout();
     }
 
-    animateHide(immediate) {
+    _animateHide(immediate) {
         if (this._focusWindow)
             this._animateWindow(this._focusWindow, false);
 
@@ -1869,7 +1869,7 @@ var Keyboard = GObject.registerClass({
 
     gestureCancel() {
         if (this._gestureInProgress)
-            this.animateHide();
+            this._animateHide();
         this._gestureInProgress = false;
     }